import service from '@/util/request.js';

const defaultPrefix = '/files';
const loadPrefix = 'http://127.0.0.1:64500/load/';

export function getImageUrl(fileName) {
  return loadPrefix + fileName;
}

export function uploadFileService(form) {
  return service.post(defaultPrefix + '/upload', form, { headers: { 'Content-Type': 'multipart/form-data' } });
}